package com.baikeyang.common.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 活动媒体文件库
 * </p>
 *
 * @author BaiKeyang
 * @since 2019-05-21
 */
@TableName("t_activity_file_library")
public class ActivityFileLibrary extends BaseModel<ActivityFileLibrary> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("TITLE")
    private String title;

    /**
     * 描述
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 文件名称
     */
    @TableField("FILE_NAME")
    private String fileName;

    /**
     * 文件大小
     */
    @TableField("FILE_SIZE")
    private Long fileSize;

    /**
     * MD5文件指纹
     */
    @TableField("FILE_MD5")
    private String fileMd5;

    /**
     * 文件路径
     */
    @TableField("FILE_PATH")
    private String filePath;

    /**
     * 文件网络路径
     */
    @TableField("FILE_NETURL")
    private String fileNeturl;

    /**
     * 文件后缀
     */
    @TableField("FILE_SUFFIX")
    private String fileSuffix;

    /**
     * 媒体时长
     */
    @TableField("MEDIA_TIME")
    private Long mediaTime;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileMd5() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileNeturl() {
        return fileNeturl;
    }

    public void setFileNeturl(String fileNeturl) {
        this.fileNeturl = fileNeturl;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public Long getMediaTime() {
        return mediaTime;
    }

    public void setMediaTime(Long mediaTime) {
        this.mediaTime = mediaTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ActivityFileLibrary{" +
        "id=" + id +
        ", title=" + title +
        ", description=" + description +
        ", fileName=" + fileName +
        ", fileSize=" + fileSize +
        ", fileMd5=" + fileMd5 +
        ", filePath=" + filePath +
        ", fileNeturl=" + fileNeturl +
        ", fileSuffix=" + fileSuffix +
        ", mediaTime=" + mediaTime +
        ", state=" + state +
        "}";
    }
}
